<?php

namespace App\Models\CarModels;

use Illuminate\Database\Eloquent\Model;

class CarPreparation extends Model
{


    protected $table = 'car_preparations';
    protected $fillable = ['work_time','fill_time','area_id','work_speed_low','work_speed_high','non_work_speed_low','kind_id',
        'non_work_speed_high','level_id'
        ];

    public function kind()
    {
        return $this->belongsTo(CarKind::class,'kind_id','id');
    }

    public function level()
    {
        return $this->belongsTo(CarStayTimeLevel::class,'department_id','id');
    }



//    protected $searchable = [
//        /**
//         * Columns and their priority in search results.
//         * Columns with higher values are more important.
//         * Columns with equal values have equal importance.
//         *
//         * @var array
//         */
//        'columns' => [
//            'hw_cars.plates_number' => 10,
//        ]
//
//    ];

}
